package Homework.Top04;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Top06 {
    public static void main(String[] args) {
        try {
            FileInputStream input=new FileInputStream("D:\\zuoye02\\111.txt");
            FileOutputStream  output=new FileOutputStream("D:\\zuoye01\\111.txt");
            try {
                int in=input.read();
                while (in!=-1){
                    output.write(in);
                    in=input.read();
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}
